package moder

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100)"`
	Password string `gorm:"type:varchar(100)"`
}

type Rode struct {
	gorm.Model
	UserRode string `gorm:"type:varchar(100)"`
}

type UserRode struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Node struct {
	gorm.Model
	RodeNode string `gorm:"type:varchar(100)"`
}

type RodeNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}

type Goods struct {
	gorm.Model
	GoodsDepot string `gorm:"type:varchar(100)"`
	GoodsNamee string `gorm:"type:varchar(100)"`
}

type Order struct {
	gorm.Model
	OrderNum   string `gorm:"type:varchar(100)"`
	OrderState string `gorm:"type:varchar(100)"`
	OrderPrice int    `gorm:"type:int"`
	Gid        int    `gorm:"type:int"`
}

type GoodsOrder struct {
	ID         string
	OrderNum   string
	OrderState string
	OrderPrice string
	GoodsDepot string
	GoodsNamee string
}
